#include <stdio.h>

main() {
    char *holptr, holder[81], *inptr, input[81];  
    holptr = holder; inptr = input; 

    printf("Enter fewer than 80 characters: ");
    fgets(input, 81, stdin); 

    if (input[0] == '\n') {
	puts("You entered nothing."); 
	return 0;
    }

    *(holptr++) = *(inptr++); 
    while (*inptr != 3) {
	if ( *(holptr - 1) != 32 || *inptr != 32 ) {
	    *(holptr++) = *inptr; 
	}
	inptr++; 
    }

    printf("Cleaned: %s", holder); 
}
